package org.ling.xuan.rule;

import org.ling.xuan.context.CheckChannelContext;
import org.ling.xuan.context.CheckPipelineContext;

public abstract class CheckRule<T extends CheckChannelContext, R extends CheckPipelineContext> {

    public abstract void check(R pipeContext, T channelContext);

    public abstract boolean match(R pipeContext, T channelContext);
}
